var express = require('express');
var router = express.Router();
let {listModel} = require("../model/model")


router.get("/list",async(req,res)=>{
   let list = await listModel.find()
   res.send({
     list
   })
})


/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'Express' });
});


module.exports = router;
